package 布隆过滤器;

/**
 * @author zhangjunfei
 * @date 2023/8/29 10:31
 */
public enum MisjudgmentRate {

    /**
     * 每个字符串分配4个位
     */
    VERY_SMALL(new int[] { 2, 3, 5, 7 }),
    /**
     * 每个字符串分配8个位
     */
    SMALL(new int[] { 2, 3, 5, 7, 11, 13, 17, 19 }),
    /**
     * 每个字符串分配16个位
     */
    MIDDLE(new int[] { 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53 }),
    /**
     * 每个字符串分配32个位
     */
    HIGH(new int[] { 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97,
            101, 103, 107, 109, 113, 127, 131 });

    public int[] seeds;

    private MisjudgmentRate(int[] seeds) {
        this.seeds = seeds;
    }

    public int[] getSeeds() {
        return seeds;
    }

    public void setSeeds(int[] seeds) {
        this.seeds = seeds;
    }
}
